package bean;

import java.sql.ResultSet;
import java.sql.SQLException;

import common.RowMapper;


public class adminRowMapper implements RowMapper<admin>{
	public admin mapper (ResultSet rs) throws SQLException{
		admin admin=new admin();
		admin.setAdmin_id(rs.getInt("admin_id"));
		admin.setAdmin(rs.getString("admin"));
		admin.setPassword(rs.getString("password"));
		admin.setName(rs.getString("name"));
		admin.setTel(rs.getString("tel"));
		admin.setMail(rs.getString("mail"));
		admin.setPermission(rs.getInt("permission"));
		admin.setWhether_position(rs.getInt("whether_position"));
		return admin;
	}
}
